Skip to main content

weekdayNames

Type

function

Summary

Returns a list of names of the days of the week used by the date function.

Syntax

the [{ long | abbreviated | short }] [{ english | system }] weekdayNames
weekdayNames()

Description

Use the weekdayNames function to let the user choose from a list of weekday names, or to display a list of days in the language of the user's system preferences.

For each form of the weekdayNames, if the useSystemDate property is set to true, or if you specify the system weekdayNames, the list of names is provided in the language specified by the user's system preferences. If the useSystemDate is false or you specify the english weekdayNames, the list of names is provided in English.

Examples

put the weekdayNames into field "Weekdays"
if it is not among the lines of the system weekdayNames then beep

Value

NameTypeDescription

return

The weekdayNames function returns a set of seven day names, one per line. The weekdayNames form returns the full name of each day, as used in the long date.

The long weekdayNames form returns the same result as the weekdayNames form.

The abbreviated weekdayNames form returns the first three letters of the name of each day, as used in the abbreviated date.

The short weekdayNames form returns the number of each day, as used in the short date.

control structure: function

function: dateFormat, date

glossary: function, property, return

property: useSystemDate

Compatibility and Support

Introduced

LiveCode 1.1

OS

mac

windows

linux

ios

android

Platforms

desktop

server

mobile

Thank you for your feedback!

Was this page helpful?